package perform.criterion;

public class In extends AbstractCriterion {
	
	private In(StringBuilder builder){
		super(builder);
	}
	
	public static In create(String column, Object value){
		StringBuilder builder = new StringBuilder();
		builder.append("`").append(column).append("` in( ").append(getValue(value)).append(" )");
		return new In(builder);
	}
	
	public In add(Object value){
		builder.replace(builder.indexOf(")"), builder.length(), ", ").append(getValue(value)).append(" )");
		return this;
	}


}
